﻿using System;
using System.Collections.Generic;
using System.Linq;
using Safal.IncidentTracker.Domain.Abstract;
using Safal.IncidentTracker.Domain.Entities;

namespace Safal.IncidentTracker.Domain.Concrete
{
    public class FakeIncidentsRepository : IIncidentsRepository
    {
        private static readonly IQueryable<Incident> _fakeIncidents = new List<Incident>
        {
            new Incident {Id = 1, Casualty = "John Phillips" , DateOfIncident = new DateTime(2010, 4, 16, 16, 32, 22), 
                Description = "John had a little mishap on the 3rd floor", InjuryLocation = "Arm", Title = "Accident with vertical cutter"},
            new Incident {Id = 2, Casualty = "Maver Riley" , DateOfIncident = new DateTime(2010, 3, 17, 6, 12, 45), 
                Description = "Maver spilt hot coffee on her leg", InjuryLocation = "Arm", Title = "Hot coffee accident"}
        }.AsQueryable();

        public IQueryable<Incident> Incidents
        {
            get { return _fakeIncidents; }
        }

        public void SaveIncident(Incident updatedIncident)
        {
            throw new NotImplementedException();
        }

        public void DeleteIncident(Incident incident)
        {
            throw new NotImplementedException();
        }

    }
}
